﻿using System.ComponentModel.DataAnnotations;
using SSB.Web.Mvc;

namespace NOSDC.Models
{
    public class ForgotViewModel
    {
        [Required]
        [ValidateMvcCaptcha(ErrorMessage = "Captcha is not valid")]
        public string Captcha { get; set; }

        [Required]
        [DataType(DataType.EmailAddress)]
        [RegularExpression(@"^[0-9a-zA-Z]+([0-9a-zA-Z]*[-._+])*[0-9a-zA-Z]+@[0-9a-zA-Z]+([-.][0-9a-zA-Z]+)*([0-9a-zA-Z]*[.])[a-zA-Z]{2,6}$", ErrorMessage = "You must provide a valid email address")]
        [Display(Name = "Email address")]
        public string Email { get; set; }
    }
}